package day1_function;

public class functionDemo {
    public static void main(String[] args) {
        //要写一个1加到10的for循环语句
        int sum = 0;
        for (int i = 1; i <= 10; i++) {
            sum += i;
        }
        System.out.println(sum);
    }
}




/*
*
*
*
*
*
*
*
*
* */